# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdegraphics-mobipocket
pkgver=22.04.3
pkgrel=0
pkgdesc="A collection of plugins to handle mobipocket files"
# armhf blocked by extra-cmake-modules
# s390x and riscv64 blocked by polkit -> kio
arch="all !armhf !s390x !riscv64"
url="https://www.kde.org/applications/graphics/"
license="GPL-2.0-or-later"
depends_dev="
	qt5-qtbase-dev
	kio-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	samurai
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdegraphics-mobipocket-$pkgver.tar.xz"
subpackages="$pkgname-dev"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
2a27b0463df39186c83e668b05c7dcc09ba5ef500418c2f8ad8c0cbf6ed06dff0d119b2f91c79e9a7701aa45e456ae688b90ca854690a3734a9ac357419cbfb3  kdegraphics-mobipocket-22.04.3.tar.xz
"
